import 'dart:convert';

import 'edu_list.dart';
import 'marry_list.dart';
import 'money_list.dart';
import 'profession_list.dart';
import 'sex_list.dart';
import 'stu_list.dart';
import 'work_list.dart';

class Data {
  List<SexList>? sexList;
  List<MarryList>? marryList;
  List<WorkList>? workList;
  List<ProfessionList>? professionList;
  List<MoneyList>? moneyList;
  List<EduList>? eduList;
  List<StuList>? stuList;

  Data({
    this.sexList,
    this.marryList,
    this.workList,
    this.professionList,
    this.moneyList,
    this.eduList,
    this.stuList,
  });

  @override
  String toString() {
    return 'Data(sexList: $sexList, marryList: $marryList, workList: $workList, professionList: $professionList, moneyList: $moneyList, eduList: $eduList, stuList: $stuList)';
  }

  factory Data.fromCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2(
      Map<String, dynamic> data) {
    return Data(
      sexList: (data['sex_list'] as List<dynamic>?)
          ?.map((e) => SexList
              .fromCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2(
                  e as Map<String, dynamic>))
          .toList(),
      marryList: (data['marry_list'] as List<dynamic>?)
          ?.map((e) => MarryList
              .fromCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2(
                  e as Map<String, dynamic>))
          .toList(),
      workList: (data['work_list'] as List<dynamic>?)
          ?.map((e) => WorkList
              .fromCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2(
                  e as Map<String, dynamic>))
          .toList(),
      professionList: (data['profession_list'] as List<dynamic>?)
          ?.map((e) => ProfessionList
              .fromCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2(
                  e as Map<String, dynamic>))
          .toList(),
      moneyList: (data['money_list'] as List<dynamic>?)
          ?.map((e) => MoneyList
              .fromCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2(
                  e as Map<String, dynamic>))
          .toList(),
      eduList: (data['edu_list'] as List<dynamic>?)
          ?.map((e) => EduList
              .fromCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2(
                  e as Map<String, dynamic>))
          .toList(),
      stuList: (data['stu_list'] as List<dynamic>?)
          ?.map((e) => StuList
              .fromCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2(
                  e as Map<String, dynamic>))
          .toList(),
    );
  }

  Map<String, dynamic>
      toCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2() {
    return {
      'sex_list': sexList
          ?.map((e) => e
              .toCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2())
          .toList(),
      'marry_list': marryList
          ?.map((e) => e
              .toCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2())
          .toList(),
      'work_list': workList
          ?.map((e) => e
              .toCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2())
          .toList(),
      'profession_list': professionList
          ?.map((e) => e
              .toCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2())
          .toList(),
      'money_list': moneyList
          ?.map((e) => e
              .toCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2())
          .toList(),
      'edu_list': eduList
          ?.map((e) => e
              .toCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2())
          .toList(),
      'stu_list': stuList
          ?.map((e) => e
              .toCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2())
          .toList(),
    };
  }

  /// `dart:convert`
  ///
  /// Parses the string and returns the resulting Json object as [Data].
  factory Data.fromJson(String data) {
    return Data
        .fromCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2(
            json.decode(data) as Map<String, dynamic>);
  }

  /// `dart:convert`
  ///
  /// Converts [Data] to a JSON string.
  String toJson() => json.encode(
      toCode1DataSexListNameKey0NameKey1NameKey2MarryListNameKey0NameKey1WorkListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27NameKey28ProfessionListNameKey0NameKey1NameItKey2NameKey3NameKey4NameKey5NameKey6NameKey7NameKey8NameKey9NameKey10NameKey11NameKey12NameKey13NameKey14NameKey15NameKey16NameKey17NameKey18NameKey19NameKey20NameKey21NameKey22NameKey23NameKey24NameKey25NameKey26NameKey27MoneyListNameKey0Name03WKey1Name46WKey2Name710WKey3Name1020WKey4Name2030WKey5Name3050WKey6Name50100WKey7Name100WKey8EduListNameKey0NameKey1NameKey2NameKey3NameKey4NameKey5NameKey6NameKey7StuListNameKey0NameKey1NameKey2());
}
